package no.la58.scribbles.shared;

import java.io.Serializable;

public class GetScribbleRequest implements Serializable {

    private static final long serialVersionUID = -1140809827126344381L;

    private int fromRange = 0;
    private int toRange = 30;
    private long maximumAge = 0l;

    /**
     * Sets uppper range limit, default is 30
     */
    public void setToRange(int toRange) {
	this.toRange = toRange;
    }

    public int getToRange() {
	return toRange;
    }

    /**
     * Sets lower range limit, default is 0
     */
    public void setFromRange(int fromRange) {
	this.fromRange = fromRange;
    }

    public int getFromRange() {
	return fromRange;
    }

    /**
     * Sets the maximum age in millis of scribbles to be retrieved. If set to 0 this parameter is
     * ignored. Default is 0.
     */
    public void setMaximumAge(long maximumAge) {
	this.maximumAge = maximumAge;
    }

    public long getMaximumAge() {
	return maximumAge;
    }

}
